package run;


import mathtools.Complex;
import gates.*;
import register.Register;

public class Janstest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Factory.functional = false;
		Register r = new Register(3);
		for(int i = 0; i<r.getNumStates(); i++){
			r.setElement(0,i,new Complex(i));
		}

		r.normalise();
		System.out.println(r.toString());
		Gate a = Factory.createNand(3);
		a.apply(r);
		
		System.out.println(r.toString());

	}

}
